package com.fas.system.mapper;

import com.fas.system.domain.FasFacilitiesSpec;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FasFacilitiesSpecMapper {

    int batchInsert(List<FasFacilitiesSpec> list);

    /**
     * 根据设施id查询规格
     * @param id 设施id
     * @return
     */
    List<FasFacilitiesSpec> findByFacilityId(String id);

    /**
     * 通过
     * @param facilityId
     * @return
     */
    int deleteFasFacilitiesSpecByFacilitiyId(Long facilityId);


    int batchDeleteByFacilitiyIds(@Param("ids") Long[] ids);
}
